package com.salton123.revenue

import java.util.concurrent.atomic.AtomicInteger

/**
 * Time:2022/2/25 3:45 下午
 * Author:
 * Description:
 */
class Counter {
    private var count: AtomicInteger = AtomicInteger(0)
    val divider: Int = 5
    fun add(): Boolean {
        return count.incrementAndGet() % divider == 0
    }
}